package com.green.javagreen.bean;


import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import javax.persistence.*;

@Entity
@Data
@ApiModel(value = "问卷")
public class QuestionBean extends EntityBean{


    private String name;



    @ApiModelProperty(value = "评审组")
    @ManyToOne(cascade = CascadeType.DETACH)
    @NotFound(action = NotFoundAction.IGNORE)
    private AdminUserBean admin;





}
